Conversation
|
This looks good. |
Unfortunately the CI still fails :( https://github.com/google/nsync/actions/runs/9774034844/job/26981440061 |
|
That's saying that the system scheduled a thread more than 100ms later than requested, 28 times out of 50 attempts. I suppose it would be possible to relax the constraints of this test too (plus the mu_test), One alternative might be to pass a flag like "-DVERY_SLOW_TEST_MACHINE" to the compilers The in the tests, it would be possible to write something like this: #if defined(VERY_SLOW_TEST_MACHINE) and set the parameters so that things still work on the github ci machines. Can you think of a better approach? |
|
P.S. If we use something like VERY_SLOW_TEST_MACHINE, we ought to spell it "NSYNC_VERY_SLOW_TEST_MACHINE" |
ba5db9f to
ede1b39
Compare
|
@m3bm3b I have update the MR with a new NSYNC_TESTING_SLOW_MACHINE CMake variable. Feel free to rename / update if you think of a better naming |
|
As I look at the other tests, I see there will be several that will need changing. |
This is a folow up on #20
The Idea is to have a simple Github CI to ensure some "basic testing"
As proposed I have relaxed the timing due to virtualization adding some variation in the timings.